/*
package com.aida.evil.eda.Toast;

import android.app.Activity;
import android.os.Parcelable;
import android.view.View;
import android.view.animation.Animation;

import com.github.johnpersano.supertoasts.SuperActivityToast;
import com.github.johnpersano.supertoasts.SuperCardToast;
import com.github.johnpersano.supertoasts.SuperToast;
import com.github.johnpersano.supertoasts.util.OnClickWrapper;

*/
/****************************************************
 * com.aida.evil.eda.Toast.SuperToast
 * 作者：白雨濃  evil
 * 时间：16-2-17 09:22
 * 邮箱：evilbai@foxmail.com
 * 页面用途：简化SuperToast的代码
 ****************************************************//*


*/
/*******************
 * 基本用法****************************
 * SuperCardToast superCardToast =
 * SuperToast_Base.superCardToast_Button
 * (getActivity(),strings_aboutitem[position], "测试");
 * superCardToast.setBackground(SuperToast.Background.GREEN);
 * superCardToast.show();
 * /////////////////////<p/>
 * superCardToast.setOnClickWrapper(new OnClickWrapper("" + getActivity(), new SuperToast.OnClickListener()
 * {
 * public void onClick(View view, Parcelable token)
 * {
 * Toast.makeText(getContext(), "aafd", Toast.LENGTH_SHORT).show();
 * }
 * }));
 ****************************************************//*

public class SuperToast_Base
{
    public static abstract class CardToast
    {
        public abstract void onClick();

        private static SuperCardToast superCardToast;
        private static CardToast cardToast;
        private static Activity activity;*/
/*传入的Activity*//*

        private static String context;*/
/*显示的信息*//*

        private static String buttonString;*/
/*按钮的文字*//*

        private static int background = SuperToast.Background.BLUE;*/
/*背景色，需要从SuperToast.Background.BLUE调用*//*

        private static SuperToast.Animations animations = SuperToast.Animations.FLYIN;*/
/*动画效果，需要从SuperToast.Animations.FLYIN调用*//*

        private static int duration = SuperToast.Duration.MEDIUM;*/
/*间隔时间，需要从SuperToast.Duration.MEDIUM调用*//*


        public CardToast(Activity activity, String context, String buttonString)
        {
            this.activity = activity;
            this.context = context;
            this.buttonString = buttonString;
        }

        public CardToast(Activity activity, int background, String buttonString, String context)
        {
            this.activity = activity;
            this.background = background;
            this.buttonString = buttonString;
            this.context = context;
        }

        public CardToast(Activity activity, String context, String buttonString, int background, SuperToast.Animations animations, int duration)
        {
            this.activity = activity;
            this.context = context;
            this.buttonString = buttonString;
            this.background = background;
            this.animations = animations;
            this.duration = duration;
        }


        */
/**
         * 建立
         *//*

        public static CardToast show()
        {
            superCardToast = new SuperCardToast(activity, SuperToast.Type.BUTTON);

            superCardToast.setSwipeToDismiss(true);
            superCardToast.setAnimations(animations);
            superCardToast.setBackground(background);
            superCardToast.setDuration(duration);
            superCardToast.setText(context);
            superCardToast.setButtonText(buttonString);

            superCardToast.show();
            return cardToast;
        }
    }

    public static abstract class ActivityToast
    {

        public abstract void onToastClick();

        private static SuperActivityToast superActivityToast;
        private static ActivityToast activityToast;
        private static Activity activity;*/
/*传入的Activity*//*

        private static String context;*/
/*显示的信息*//*

        private static String buttonString;*/
/*按钮的文字*//*

        private static int background = SuperToast.Background.BLUE;*/
/*背景色，需要从SuperToast.Background.BLUE调用*//*

        private static SuperToast.Animations animations = SuperToast.Animations.FLYIN;*/
/*动画效果，需要从SuperToast.Animations.FLYIN调用*//*

        private static int duration = SuperToast.Duration.MEDIUM;*/
/*间隔时间，需要从SuperToast.Duration.MEDIUM调用*//*


        public ActivityToast(Activity activity, String context, String buttonString)
        {
            this.activity = activity;
            this.context = context;
            this.buttonString = buttonString;
        }

        public ActivityToast(Activity activity, String context, String buttonString, int duration)
        {
            this.activity = activity;
            this.context = context;
            this.buttonString = buttonString;
            this.duration = duration;
        }


        public ActivityToast(Activity activity, int background, String buttonString, String context)
        {
            this.activity = activity;
            this.background = background;
            this.buttonString = buttonString;
            this.context = context;
        }

        public ActivityToast(Activity activity, String context, String buttonString, int background, SuperToast.Animations animations, int duration)
        {
            this.activity = activity;
            this.context = context;
            this.buttonString = buttonString;
            this.background = background;
            this.animations = animations;
            this.duration = duration;
        }


        */
/**
         * 建立
         *//*

        public ActivityToast show()
        {
            superActivityToast = new SuperActivityToast(activity, SuperToast.Type.BUTTON);

            //superActivityToast.setSwipeToDismiss(true);
            superActivityToast.setTouchToDismiss(true);
            superActivityToast.setAnimations(animations);
            superActivityToast.setBackground(background);
            superActivityToast.setDuration(duration);
            superActivityToast.setText(context);
            superActivityToast.setButtonText(buttonString);
            superActivityToast.setOnClickWrapper(
                    new OnClickWrapper(activity + "", new SuperToast.OnClickListener()
                    {
                        @Override
                        public void onClick(View view, Parcelable token)
                        {
                            onToastClick();
                        }
                    })
            );
            superActivityToast.show();
            return activityToast;
        }
    }


    public static SuperCardToast superCardToast_Button(Activity 传入activity, String 基本显示内容, String 按钮显示内容)
    {
        SuperCardToast superCardToast = new SuperCardToast(传入activity, SuperToast.Type.BUTTON);
        */
/**
         * 固定区域
         *//*

        superCardToast.setSwipeToDismiss(true);
        superCardToast.setAnimations(SuperToast.Animations.FLYIN);
        superCardToast.setBackground(SuperToast.Background.BLUE);
        superCardToast.setDuration(SuperToast.Duration.MEDIUM);
        */
/**
         * 定义区域
         *//*

        superCardToast.setText(基本显示内容);
        superCardToast.setButtonText(按钮显示内容);

        return superCardToast;
    }

    public static SuperActivityToast superActivityToast_Button(Activity activity, String context, String buttontext)
    {
        SuperActivityToast superActivityToast = new SuperActivityToast(activity, SuperToast.Type.BUTTON);
        */
/**
         * 固定区域
         *//*

        superActivityToast.setTouchToDismiss(true);
        superActivityToast.setAnimations(SuperToast.Animations.FLYIN);
        superActivityToast.setBackground(SuperToast.Background.BLUE);
        superActivityToast.setDuration(SuperToast.Duration.MEDIUM);
        */
/**
         * 定义区域
         *//*

        superActivityToast.setText(context);
        superActivityToast.setButtonText(buttontext);

        return superActivityToast;
    }
}
*/
